<template>
  <div class="order_page">
    <div class="header">
      <img :src="require('../assets/images/order/fanhui.png')" alt="" @click="back"/>
      <p>商品订单</p>
    </div>
    <div class="search">
      <van-search
        v-model="SearVal"
        show-action
        shape="round"
        placeholder="请输入搜索关键词"
        @search="onSearch"
      >
        <template #action>
          <div @click="onSearch">搜索</div>
        </template>
      </van-search>
    </div>

    <!-- tab栏 -->
    <van-tabs v-model="active">
      <van-tab title="全部">
        <All /> 
      </van-tab>
      <van-tab title="待发货">
        <Send />
      </van-tab>
      <van-tab title="待收货">
        <Accept />
      </van-tab>
      <van-tab title="待评价">
        <Pingjia />
      </van-tab>
    </van-tabs>
  </div>
</template>

<script>
import Send from '../components/Order/Send'
import All from '../components/Order/All.vue'
import Accept from '../components/Order/Accept'
import Pingjia from '../components/Order/Pingjia'
export default {
  data() {
    return {
      SearVal: "",
      active: 0,
    };
  },
  methods: {
    onSearch() {},
    back() {
      this.$router.back();
    },
  },
  components:{
      Send,
      All,
      Accept,
      Pingjia,
  },
  
};
</script>
<style lang="less" scoped>
.order_page{
    background-color: #f5f5f5;
}
.header {
  width: 100%;
  height: 41px;
  background-color: #039;
  text-align: center;
  display: flex;
  align-items: center;
  img {
    width: 20px;
    height: 20px;
    padding-left: 10px;
    box-sizing: border-box;
  }

  p {
    margin: auto;
    color: #fff;
    font-size: 20px;
  }
}
.search {
  width: 100%;
  height: 50px;
  background-color: pink;
}
.van-search__action {
  color: #039;
  font-size: 18px;
}
</style>